<?php
$this->pageTitle=Yii::app()->name . ' - Mapka';
$this->breadcrumbs=array(
	'Mapka',
);
?>
<meta
	http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Pierwsza strona</title>
<script src="http://maps.google.com/maps/api/js?sensor=false" type="text/javascript"></script>
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/mapka/map.js"></script>
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/mapka/polygons.js"></script>
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/mapka/cookie.js"></script>
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/mapka/favs.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/js/highcharts.js"></script>
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/chartsThemeGray.js"></script>
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/charts.js"></script>
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/chartsAll.js"></script>
<script src="http://google-maps-utility-library-v3.googlecode.com/svn/tags/markermanager/1.0/src/markermanager.js" type="text/javascript"></script>
<script src="<?php echo Yii::app()->request->baseUrl; ?>/js/mapka/markerwithlabel.js" type="text/javascript"></script>
<script src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery/jquery.ui.core.js" type="text/javascript"></script>
<script src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery/jquery.ui.widget.js" type="text/javascript"></script>
<script src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery/jquery.ui.position.js" type="text/javascript"></script>
<script src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery/jquery.ui.autocomplete.js" type="text/javascript"></script>
<script src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery/jquery.autocomplete.cities.js" type="text/javascript"></script>

<link rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl; ?>/css/jquery-ui-1.8.16.custom.css" type="text/css" />

<body onload="mapStart()">
	<div id="mapka"
		style="width: 900px; height: 700px; border: 0px solid black; background: gray; margin: 0 auto 0 auto">
	</div>
	<div id="chart" style="width: 900px;"></div>
</body>

<?php $this->beginWidget('system.web.widgets.CClipWidget', array('id'=>'sidebar')); ?>

<div class="panel">
	<div class="panel_top">Miejsca</div>
	<div class="panel_content">
		<div id="city_search" class="ui-widget">
			<label for="city">Wybierz miasto: </label>
			<input id="city" />
		</div>
		<div id="regions"></div>
	</div>
</div>
<div class="panel">
	<div class="panel_top">Pogoda</div>
	<div class="panel_content">
		<span id="weather_summary_icon"></span><br /> 
		<span>nazwa: </span><span id="title"></span>&nbsp;<span id="addFav"></span><br />
		<span>dł.geo: </span><span id="longitude"></span><br /> 
		<span>szer.geo: </span><span id="latitude"></span><br /> 
		<span>wiatr: </span><span id="wind_speed"></span>&nbsp;&nbsp;<span id="arrow_wind_speed"
			style="font-weight: bolder">&uarr;</span><br /> 
		<span>temp. odczuwalna : </span><span id="skin_temp"></span><br />
	</div>
</div>
<?php if (!Yii::app()->user->isGuest) {
		?>
			<div class="panel">
				<div class="panel_top">
					Ulubione miejsca
				</div>
				<div class="panel_content" id="favs">
				</div>
			</div>
			<?php } ?>


	
<?php $this->endWidget();
/*$this->beginWidget('system.web.widgets.CClipWidget', array('id'=>'sidebar')); ?>
 <div class="panel">
<div class="panel_top">Rejony</div>
<div class="panel_content">




<?php/* echo CHtml::dropDownList('regiony','', CHtml::listData(Region::model()->findAll(), 'id', 'name'),array(
'prompt'=> 'Wybierz region...',
'ajax' => array(
'type'=>'POST',
'url'=>CController::createUrl('data/getRegionLocationsData'),
'data'=>array('id_reg'=>'js:this.value'),
'update'=>'#locations'
)));
echo CHtml::dropDownList('locations',1, CHtml::listData(Location::model()->findAll(), 'id', 'title'),array(
'ajax' => array(
'type'=>'POST',
'url'=>CController::createUrl('data/getLocationData'),
'data'=>array('id'=>'js:this.value'),
'success'=> "function(data, textStatus, jqXHR) {
changeInfo(data);
createCookie('title',data[1],7);
}",
'update'=>'#locations'
)));?>
</div>
</div>
<?php $this->endWidget();

?>*/
?>
